package com.ruicar.afs.cloud.basic.feign;

import com.ruicar.afs.cloud.common.modules.contract.cms.vo.BasicCustBaseInfoVo;
import com.ruicar.afs.cloud.common.core.feign.annotations.AfsFeignClear;
import com.ruicar.afs.cloud.common.core.util.IResponse;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * <p>Description: </p>
 *
 * @author ZC.GUO
 * @version 1.0
 * @date create on 2020-08-07 14:04
 */
@FeignClient(name = "CaseForLoanBeforeInfoFeign", url = "${com.greatwall.services.case-service.url}")
public interface CaseForLoanBeforeInfoFeign {

    /**
     * 根据入参查询贷前信息
     * @author ZC.GUO
     * @param queryNo 入参
     * @param headers
     * @return
     */
    @ApiOperation("根据渠道id和业务类型获取最新的渠道收款账号")
    @PostMapping(value = "/loanBeforeInfo/findCustInfoByQueryNo")
    @AfsFeignClear(true)
    public IResponse<BasicCustBaseInfoVo> findCustInfoByQueryNo(@RequestParam("queryNo") String queryNo, @RequestHeader Map<String, String> headers);


}
